package com.stephen.shirodemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stephen.shirodemo.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: stephen
 * @create: 2020-03-11 12:47
 * @description:
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    User selectByUsername(@Param("username") String username);

    List<String> selectPermissionsByUserId(Integer userId);

    List<String> selectRoleNamesByUserId(Integer userId);

}
